one year ago javascript date

59

one year ago javascript date -

var startDate = new Date();
    startDate.setFullYear(startDate.getFullYear() - 1);

Comments

Submit
0 Comments